<!--
 * @Description: 订单评价管理
 * @Author: Li Yujie
 * @Date: 2021/01/21
 * @Last Modified by: Li Yujie
 * @Last Modified time: 2021/01/21
-->
<template>
    <div class="wrapper">
        <div class="content-wrapper">
            <!-- header -->
            <div class="header">
                <div class="header-title">
                    订单评价
                </div>
            </div>
            <!-- /header -->
            <el-tabs
                v-model="filterData.verify"
                @tab-click="getTableData(1)"
            >
                <el-tab-pane
                    label="全部"
                    name="99"
                />
                <el-tab-pane
                    label="待人工审核"
                    name="0"
                />
                <el-tab-pane
                    label="审核通过"
                    name="1"
                />
                <el-tab-pane
                    label="人工审核不通过"
                    name="-1"
                />
            </el-tabs>
            <!-- 筛选-->
            <div class="filter-view">
                <div class="header-new-box">
                    <p class="header-new-box-title">
                        商品信息
                    </p>
                    <el-input
                        placeholder="请输入商品信息"
                        v-model="filterData.goods_keyword"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">
                        订单编号
                    </p>
                    <el-input
                        placeholder="请输入订单编号"
                        v-model="filterData.order_no"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">
                        用户信息
                    </p>
                    <el-input
                        placeholder="请输入用户信息"
                        v-model="filterData.student_keyword"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">
                        店铺名称
                    </p>
                    <el-input
                        placeholder="请输入店铺名称"
                        v-model="filterData.shop_keyword"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">
                        审核类型
                    </p>
                    <el-select
                        v-model="filterData.verify_type"
                        filterable
                        placeholder="全部"
                        size="medium"
                        style="width: 152px"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in typeList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        />
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">
                        商品评价星级
                    </p>
                    <el-select
                        v-model="filterData.score_goods"
                        placeholder="全部"
                        size="medium"
                        style="width: 152px"
                        @change="getTableData(1)"
                    >
                        <el-option
                            label="全部"
                            :value="99"
                        />
                        <el-option
                            v-for="item in 5"
                            :key="item"
                            :label="`${item}星`"
                            :value="item"
                        />
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">
                        评价时间
                    </p>
                    <el-date-picker
                        v-model="dateTimeRange"
                        type="datetimerange"
                        range-separator="-"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期"
                        :default-time="['00:00:00', '23:59:59']"
                        size="medium"
                        style="width: 400px"
                        value-format="timestamp"
                    />
                </div>
                <div class="header-new-box">
                    <el-button
                        type="primary"
                        size="small"
                        @click="getTableData(1)"
                    >
                        查询
                    </el-button>
                </div>
            </div>
            <!--筛选-->

            <!-- table -->
            <div
                v-loading="tableLoading"
                class="table-wrapper"
            >
                <div class="table-header">
                    <div
                        class="table-header-inner"
                        :style="{minWidth: '1508px'}"
                    >
                        <div
                            v-for="(title,index) in tableHeader"
                            :key="index"
                            class="table-header-title"
                            :class="'header'+ index"
                        >
                            {{ title }}
                        </div>
                    </div>
                </div>
                <div
                    class="table-body"
                    v-if="tableData.length"
                >
                    <div class="table-body-inner">
                        <div
                            v-for="(row,index) in tableData"
                            :key="row.review_no"
                            class="table-row"
                            :style="{minWidth: '1506px'}"
                        >
                            <!-- 订单信息 -->
                            <div class="row-top">
                                <div class="order_info">
                                    <p class="order_info_item">
                                        订单编号： {{ row.order_no ? row.order_no : '--' }}
                                    </p>
                                    <p class="order_info_item">
                                        姓名： {{ row.student_info ? row.student_info.true_name : '--' }}
                                    </p>
                                    <p class="order_info_item">
                                        手机号： {{ row.student_info ? row.student_info.phone : '--' }}
                                    </p>
                                    <p class="order_info_item">
                                        用户编号： {{ row.student_info ? row.student_info.student_no : '--' }}
                                    </p>
                                </div>
                                <div class="order_info"/>
                            </div>

                            <!-- 评价数据列表 -->
                            <div class="row-content">
                                <div
                                    class="table-column"
                                    data-info="序号"
                                    :style="{width: '60px', flex: 'none', alignItems: 'flex-start', marginTop: '3px'}"
                                >
                                    {{ index + 1 }}
                                </div>
                                <div
                                    class="table-column"
                                    data-info="评价内容"
                                    :style="{width: '420px', flex: 'none'}"
                                >
                                    <div class="comment-content">
                                        <div class="comment-text">
                                            {{ row.content }}
                                        </div>
                                        <div class="comment-assets">
                                            <div
                                                v-for="(item, index) in row.content_media"
                                                :key="index"
                                            >
                                                <div
                                                    class="assets-item"
                                                    v-if="item.type === 2"
                                                >
                                                    <img
                                                        :src="item.image_url"
                                                        @click="getPreviewImage(row.content_media, index)"
                                                    >
                                                </div>
                                                <div
                                                    class="assets-item video"
                                                    @click="previewVideo(item.video_url)"
                                                    v-if="item.type === 1"
                                                >
                                                    <img
                                                        :src="item.video_cover_image"
                                                    >
                                                    <div class="icon">
                                                        <img src="@/assets/image/play.png">
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                        <div class="comment-time">
                                            评价时间：{{ row.create_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }}
                                        </div>
                                    </div>
                                </div>
                                <div
                                    class="table-column"
                                    data-info="商品信息"
                                    :style="{width: '300px', flex: 'none'}"
                                >
                                    <div
                                        class="goods-info"
                                        v-if="row.goods_info"
                                    >
                                        <img
                                            :src="row.goods_info.goods_cover"
                                            @click="fnShowPreview(row.goods_info.goods_cover)"
                                        >
                                        <el-tooltip
                                            effect="dark"
                                            :content="row.goods_info.goods_title"
                                            placement="top"
                                        >
                                            <div class="info-wrapper">
                                                <div class="info_main">
                                                    {{ row.goods_info.goods_title }}
                                                </div>
                                                <div class="spec">
                                                    {{ row.goods_product_info.goods_spec | filterSpec }}
                                                </div>
                                            </div>
                                        </el-tooltip>
                                    </div>
                                </div>
                                <div
                                    class="table-column"
                                    data-info="评价星级"
                                    :style="{width: '240px', flex: 'none'}"
                                >
                                    <div class="rate-wrapper">
                                        <div class="rate-item">
                                            <div class="rate-title">商品评价</div>
                                            <el-rate
                                                v-model="row.score_goods"
                                                allow-half
                                                disabled
                                                disabled-void-color="#EAEAEA"
                                                :colors="['#FA7313','#FA7313','#FA7313']"
                                            />
                                        </div>
                                        <div class="rate-item">
                                            <div class="rate-title">物流服务</div>
                                            <el-rate
                                                v-model="row.score_ship"
                                                allow-half
                                                disabled
                                                disabled-void-color="#EAEAEA"
                                                :colors="['#FA7313','#FA7313','#FA7313']"
                                            />
                                        </div>
                                        <div class="rate-item">
                                            <div class="rate-title">店家服务态度</div>
                                            <el-rate
                                                v-model="row.score_shop_service"
                                                allow-half
                                                disabled
                                                disabled-void-color="#EAEAEA"
                                                :colors="['#FA7313','#FA7313','#FA7313']"
                                            />
                                        </div>
                                        <div class="rate-item">
                                            <div class="rate-title">快递包装</div>
                                            <el-rate
                                                v-model="row.score_ship_box"
                                                allow-half
                                                disabled
                                                disabled-void-color="#EAEAEA"
                                                :colors="['#FA7313','#FA7313','#FA7313']"
                                            />
                                        </div>
                                    </div>
                                </div>
                                <div
                                    class="table-column"
                                    data-info="店铺名称"
                                    :style="{width: 'auto', flex: 1, minWidth: '120px'}"
                                >
                                    <div class="shop-title">
                                        {{ row.shop_title }}
                                    </div>
                                </div>
                                <div
                                    class="table-column"
                                    data-info="审核类型"
                                    :style="{width: 'auto', flex: 1, minWidth: '120px'}"
                                >
                                    <div class="type-wrapper">
                                        {{ row.verify_type === 1 ? '自动审核' : '人工审核' }}
                                    </div>
                                </div>
                                <div
                                    class="table-column"
                                    data-info="审核状态"
                                    :style="{width: 'auto', flex: 1, minWidth: '120px'}"
                                >
                                    <div class="status-wrapper">
                                        <div v-if="row.verify === 0">待人工审核</div>
                                        <div v-if="row.verify === 1">审核通过</div>
                                        <div v-if="row.verify === -1">人工审核不通过</div>
                                    </div>
                                </div>
                                <div
                                    class="table-column"
                                    data-info="操作"
                                    :style="{width: '100px', flex: 'none'}"
                                >
                                    <div class="btn-wrapper">
                                        <el-button
                                            type="text"
                                            size="medium"
                                            v-if="row.verify === 0 || row.verify === -1"
                                            @click="showPassDialog(row.review_no)"
                                        >
                                            审核通过
                                        </el-button>
                                        <el-button
                                            type="text"
                                            size="medium"
                                            v-if="row.verify === 0"
                                            @click="showRejectDialog(row)"
                                        >
                                            审核不通过
                                        </el-button>
                                        <el-button
                                            type="text"
                                            size="medium"
                                            v-if="row.verify === 1"
                                            @click="showRejectDialog(row)"
                                        >
                                            驳回
                                        </el-button>
                                        <el-button
                                            type="text"
                                            size="medium"
                                            @click="showRejectDialog(row, 1)"
                                            v-if="row.verify === -1"
                                        >
                                            驳回原因
                                        </el-button>
                                    </div>
                                </div>
                            </div>

                            <!-- 商家回复 -->
                            <div
                                class="row-bottom"
                                v-if="row.replay && row.replay.type.status === 1"
                            >
                                <div class="reply-text">
                                    [商家回复]：{{ row.reply.content }}
                                </div>
                                <div class="reply-time">
                                    {{ row.reply.create_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div
                    v-else
                    class="empty"
                >
                    <span>暂无数据</span>
                </div>
            </div>
            <!-- /table -->

            <!-- /分页 -->
            <div class="pagination-wrapper clearfix">
                <el-pagination
                    layout="total, prev, pager, next, jumper"
                    background
                    :current-page.sync="page.now_page"
                    :total="page.total_count"
                    :page-size="page.page_size"
                    @current-change="getTableData"
                />
            </div>
        </div>

        <!-- 图片预览 -->
        <img-preview ref="preview" />
        <!-- 驳回弹窗 -->
        <reject-dialog
            ref="rejectDialog"
            :visible.sync="rejectDialog"
            :reason-detail="reasonDetail"
            :maxlength="100"
            @confirm="handleExamine('reject', $event)"
        />
        <!-- 视频播放组件 -->
        <video-simple
            ref="videoSimple"
            :url="video"
            :top="54"
            :left="left"
        />
    </div>
</template>

<script>
import imgPreview from '@/components/common/img-preview';
import rejectDialog from '@/components/dialog/reject-dialog';
import videoSimple from '@/components/dorm/video-simple.vue';
import { back } from '@/mixin/back';

export default {
    name: 'OrderComment',
    mixins: [back],
    components: {
        imgPreview,
        rejectDialog,
        videoSimple
    },
    data() {
        return {
            filterData: {
                // 审核状态
                verify: '99',
                // 商品信息
                goods_keyword: '',
                order_no: '',
                // 用户信息
                student_keyword: '',
                // 店铺名称
                shop_keyword: '',
                // 评价星级
                score_goods: 99,
                // 审核类型
                verify_type: 99,
                // 评价时间
                create_start_time: '',
                create_end_time: ''
            },
            tableData: [],
            tableLoading: false,
            page: {
                now_page: 1,
                total_count: 0,
                page_size: 20
            },
            dateTimeRange: [],
            // 审核类型
            typeList: [
                {label: '全部', value: 99},
                {label: '自动审核', value: 1},
                {label: '人工审核', value: 2},
            ],
            tableHeader: ['序号','评价内容','商品信息','评价星级','店铺名称','审核类型','审核状态','操作'],
            // 驳回弹窗开关
            rejectDialog: false,
            reasonDetail: '',
            review_no: '',
            // 预览的视频
            video: '',
            left: 0
        };
    },
    computed: {},
    filters: {
        filterSpec (val) {
            if(!val) return '';

            let str = '';

            val.forEach(el => {
                str += el.spec_name + ':' + el.spec_value + ';';
            });

            return str;
        }
    },
    watch: {
        dateTimeRange(value) {
            this.filterData.create_start_time = value ? value[0] / 1000 : '';
            this.filterData.create_end_time = value ? value[1] / 1000 : '';
            this.getTableData(1);
        }
    },

    mounted() {
        this.$store.commit('SET_HEADER', [{title: "APP后台"}, {title: '商城'}, {title: '订单管理', path: '/student/order-list'},{title: '订单评价'}]);
        this.authResult = this.$route.meta.authResult;
        this.getTableData();
    },

    methods: {

        /**
         * @description 获取表优惠券列表数据
         * @param page
         */
        getTableData(page) {

            this.tableLoading = true;
            let params = { ...this.filterData };

            params.page_id = page || this.page.now_page;
            params.verify = Number(params.verify);

            this.$post('/student/shop_goods_order_review%5Cget_list', params, resp => {
                if (resp.code === 1) {
                    this.tableData = resp.data.list;
                    this.page = resp.data.page;
                } else {
                    this.$notify({
                        title: '提示',
                        message: resp.msg,
                        duration: 2000,
                        type: 'warning'
                    });
                }
                this.tableLoading = false;
                setTimeout(()=>{
                    this.scrollAsync();
                },1000);
            });
        },

        /**
         * @description 查看图片
         * @param   {String}    images    单图预览
         * @param   {Array}     images     多图预览
         * @param index
         */
        fnShowPreview(images, index) {
            if(images && Object.prototype.toString.call(images) == '[object String]') {
                this.$refs.preview.show([
                    images
                ]);
            } else if (images && Object.prototype.toString.call(images) == '[object Array]') {
                this.$refs.preview.show(images, index);
            } else {
                this.$notify({
                    title: '提示',
                    message: '图片类型错误',
                    type: 'warning',
                    duration: 2000
                });
            }
        },

        /**
         * 查看视频
         */
        previewVideo(video) {
            this.left = this.$el.clientWidth - 300;
            this.video = video;
            this.$refs.videoSimple.showVideo();
        },

        /**
         * 驳回弹窗
         * @param type - 0填写驳回原因  1回显原因
         * @param row
         */
        showRejectDialog(row, type = 0) {
            if(type === 1) {
                // 回显
                this.$refs.rejectDialog.title = '驳回原因';
                this.reasonDetail = row.verify_fail_reason;
                this.rejectDialog = true;
            } else {
                if(!this.authResult.auth_verify) {
                    this.$notify({
                        title: '提示',
                        message: '请联系管理员添加权限',
                        type: 'warning',
                        duration: 2000
                    });
                    return false;
                }
                // 填写
                this.$refs.rejectDialog.title = '审核驳回';
                this.$refs.rejectDialog.reason = '评价内容不符合国家法律法规，含敏感信息、危害信息';
                this.reasonDetail = '';
                this.review_no = row.review_no;
                this.rejectDialog = true;
            }
        },

        /**
         * 审核通过提示弹窗
         * @param no
         */
        showPassDialog(no) {
            if(!this.authResult.auth_verify) {
                this.$notify({
                    title: '提示',
                    message: '请联系管理员添加权限',
                    type: 'warning',
                    duration: 2000
                });
                return false;
            }
            this.$confirm('是否确认通过该条评论审核?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.review_no = no;
                this.handleExamine('pass');
            });
        },

        /**
         * 通过或者驳回
         * @param action - pass通过  reject驳回
         * @param reason - 拒绝原因
         *        verify 2通过 3不通过
         */
        handleExamine(action, reason = '') {
            let params = {
                review_no: this.review_no,
                verify_fail_reason: reason,
                verify: action === 'pass' ? 1 : -1
            };

            this.$post('/student/shop_goods_order_review%5Cverify', params, resp => {
                if (resp.code === 1) {

                    this.$notify({
                        title: '成功',
                        message: '操作成功',
                        duration: 2000,
                        type: 'success'
                    });
                    this.getTableData();
                } else {
                    this.$notify({
                        title: '提示',
                        message: resp.msg,
                        duration: 2000,
                        type: 'warning'
                    });
                }
            });
        },

        /**
         * 获取预览图片列表
         * @param mediaList
         * @param index
         */
        getPreviewImage(mediaList, index) {

            let imageList = [];

            mediaList.forEach(item => {
                if(item.type === 2) {
                    imageList.push(item.image_url);
                }
            });
            // eslint-disable-next-line no-param-reassign
            if(mediaList[0].type === 1) index = index -1;
            this.fnShowPreview(imageList, index);
        },

        /**
         * @description 监听横向滚动,触发同步更新
         */
        scrollAsync () {
            let tableBody = document.querySelector('.table-body');
            let tableHeader = document.querySelector('.table-header');

            if(tableBody) {
                tableBody.addEventListener('scroll', e => {
                    tableHeader.scrollLeft = e.target.scrollLeft;
                },false);

                tableHeader.addEventListener('scroll', e => {
                    tableBody.scrollLeft = e.target.scrollLeft;
                },false);
            }
        },
    }
};
</script>

<style lang="less" scoped>
.wrapper {
    width: 100%;

    .content-wrapper {
        display: flex;
        height: calc(100% - 24px);
        flex-direction: column;
        position: relative;
        margin: 12px;
        padding: 24px;
        background: #fff;
        box-sizing: border-box;

        /*header*/

        .header {
            height: 68px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #F0F2F5;

            .header-title {
                color: #333333;
                font-size: 20px;
                height: 20px;
                font-weight: 500;
                position: relative;
                margin-left: 12px;
                margin-bottom: 24px;

                &::before {
                    content: '';
                    position: absolute;
                    left: -8px;
                    top: -1px;
                    width: 3px;
                    height: 20px;
                    background: #1890FF;
                }
            }
        }

        /*el-tabs*/

        /deep/ .el-tabs {

            .el-tabs__nav-wrap {
                height: 54px;
                .el-tabs__nav-scroll {
                    .el-tabs__nav {
                        height: 54px;
                        line-height: 54px;
                    }
                }
            }
        }

        /*筛选*/

        .filter-view {
            margin-top: 6px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            flex-wrap: wrap;

            .header-new-box {
                display: flex;
                align-items: center;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #333333;
                white-space: nowrap;
                margin-right: 24px;
                margin-bottom: 24px;

                &-title {
                    margin-right: 16px;
                    white-space: nowrap;
                }
            }

            .input-with-select {
                width: 300px;
                margin-right: 32px;
            }

            /deep/ .input-with-select .el-input-group__prepend {
                background-color: #fff;
                width: 130px;
            }
        }

        /*table*/
        .table-wrapper {
            width: 100%;
            height: 100%;
            overflow: hidden;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            &::-webkit-scrollbar {
                width: 6px;
                height: 6px;
            }
            .table-header {
                width: 100%;
                height: 44px;
                background: #F2F2F2;
                overflow: auto;
                &::-webkit-scrollbar {
                    width: 0;
                    height: 0;
                }
                .table-header-inner {
                    width: auto;
                    height: 44px;
                    padding: 0 24px;
                    display: flex;
                    align-items: center;
                    box-sizing: border-box;
                    .table-header-title {
                        height: 100%;
                        line-height: 44px;
                        color: #333;
                        font-size: 14px;
                        font-weight: 500;
                        box-sizing: border-box;
                        white-space: nowrap;
                        padding-left: 0;
                        padding-right: 0;
                        text-align: center;
                        width: 150px;
                        &.header0 {
                            width: 60px;
                            min-width:60px ;
                            text-align: left;
                        }
                        &.header1 {
                            width: 420px;
                            min-width: 420px;
                            text-align: left;
                        }
                        &.header2 {
                            width: 300px;
                            min-width: 300px;
                            text-align: left;
                        }
                        &.header3 {
                            width: 240px;
                            min-width: 240px;
                            text-align: center;
                        }
                        &.header4,&.header5,&.header6 {
                            width: auto;
                            flex: 1;
                            min-width: 120px;
                        }
                        &.header7  {
                            width: 100px;
                            text-align: left;
                        }
                    }
                }
            }
            // table
            .table-body {
                width: 100%;
                flex: 1;
                display: flex;
                flex-direction: column;
                overflow: auto;
                &::-webkit-scrollbar {
                    width: 6px;
                    height: 6px;
                }
                .table-body-inner {
                    flex: 1;
                    width: 100%;
                    .table-row {
                        background: #FBFBFB;
                        border-radius: 2px;
                        border: 1px #EEEEEE solid;
                        margin-top: 12px;
                        font-size: 14px;
                        font-family: PingFangSC-Regular, PingFang SC;
                        font-weight: 400;
                        color: #333333;
                        // 订单信息
                        .row-top {
                            height: 44px;
                            box-sizing: border-box;
                            background: #F7F7F7;
                            border-bottom: 1px #EEEEEE solid;
                            padding: 0 24px;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            font-size: 12px;
                            font-family: PingFangSC-Regular, PingFang SC;
                            font-weight: 400;
                            color: #333333;
                            .order_info {
                                display: flex;
                                align-items: center;
                                .order_info_item {
                                    margin-right: 32px;
                                }
                            }
                        }
                        .row-content {
                            box-sizing: border-box;
                            padding: 24px;
                            display: flex;
                            .table-column {
                                box-sizing: border-box;
                                padding: 0 10px;
                            }

                            // 评论内容
                            .comment-content {
                                display: flex;
                                flex-direction: column;

                                .comment-text {
                                    color: #333333;
                                    line-height: 20px;
                                    margin-bottom: 10px;
                                }
                                .comment-time {
                                    color: #999999;
                                    margin-top: 6px;
                                }
                                .comment-assets {
                                    display: flex;
                                    flex-wrap: wrap;
                                    .assets-item {
                                        width: 60px;
                                        height: 60px;
                                        margin-bottom: 9px;
                                        margin-right: 9px;
                                        background: #FBFBFB;
                                        border-radius: 2px;
                                        border: 1px solid #EEEEEE;
                                        overflow: hidden;
                                        cursor: pointer;
                                        img {
                                            width: 100%;
                                            height: 100%;
                                        }
                                        &.video {
                                            position: relative;
                                            .icon {
                                                width: 30px;
                                                height: 30px;
                                                position: absolute;
                                                left: 50%;
                                                top: 50%;
                                                transform: translate(-50%, -50%);
                                            }
                                        }
                                    }
                                }
                            }

                            // 商品信息
                            .goods-info {
                                display: flex;
                                align-items: center;
                                font-size: 14px;

                                img {
                                    width: 80px;
                                    height: 80px;
                                    border-radius: 2px;
                                    cursor: pointer;
                                    margin-right: 10px;
                                }
                                .info-wrapper {
                                    height: 80px;
                                    display: flex;
                                    flex-direction: column;
                                    justify-content: space-between;
                                    .info_main {
                                        overflow: hidden;
                                        text-overflow: ellipsis;
                                        display: -webkit-box;
                                        -webkit-line-clamp: 2;
                                        -webkit-box-orient: vertical;
                                        line-height: 20px;
                                    }
                                    .spec {
                                        line-height: 20px;
                                    }
                                }
                            }
                            // 评分
                            .rate-wrapper {
                                display: flex;
                                flex-direction: column;
                                color: #333333;
                                .rate-item {
                                    display: flex;
                                    align-items: center;
                                    margin-bottom: 12px;
                                    .rate-title {
                                        width: 84px;
                                        text-align: right;
                                        margin-right: 10px;
                                    }
                                }
                            }
                            .shop-title,.type-wrapper,.status-wrapper {
                                text-align: center;
                            }
                            .btn-wrapper {
                                text-align: center;
                                .el-button {
                                    margin-left: 0;
                                    margin-right: 6px;
                                }
                            }
                        }

                        .row-bottom {
                            border-top: 1px solid #eee;
                            box-sizing: border-box;
                            padding: 24px 86px;
                            display: flex;
                            flex-direction: column;
                            font-size: 14px;
                            line-height: 20px;
                            .reply-text {
                                font-family: PingFangSC-Medium, PingFang SC;
                                font-weight: 500;
                                color: #333333;
                                margin-bottom: 12px;
                            }
                            .reply-time {
                                font-family: PingFangSC-Regular, PingFang SC;
                                font-weight: 400;
                                color: #999999;
                            }
                        }
                    }
                }
            }
        }

        .empty {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #909399;
        }
        /* 分页 */

        .pagination-wrapper {
            padding-top: 10px;
            .el-pagination {
                float: right;
                padding: 0;
                background-color: transparent;
            }
        }
        /deep/ .el-dialog__header {
            padding-top: 10px;
            box-shadow:0 1px 0 0 rgba(233,233,233,1);
            display: flex;
            align-items: center;
            background: #FAFAFA;
            border-radius: 4px 4px 0 0;
            .el-dialog__title {
                font-weight: 500;
                color: #333;
                font-size: 14px;
            }
            .el-icon-close:before {
                color: rgb(194,194,194);
                font-size: 17px;
                font-weight: bold;
            }
            .el-dialog__headerbtn {
                top: 14px;
            }
        }
        .el-textarea__inner {
            resize: none;
        }
    }
}
</style>
